﻿using SqlSugar;
using System;

namespace OldPlatForm_backup_Migration.entity
{
    /// <summary>
    /// 历史数据表实体类
    /// </summary>
    [SugarTable(TableConstant.historyData)]
    public class HistoryData
    {
        #region 字段属性

        /// <summary>
        /// 槽号
        /// </summary>
        public string Slot_id { get; set; }

        /// <summary>
        /// 记录时间
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public DateTime Date { get; set; }

        /// <summary>
        /// 槽电流
        /// </summary>
        public float Electric { get; set; }

        /// <summary>
        /// 槽电压
        /// </summary>
        public float Volt { get; set; }

        /// <summary>
        /// 槽电阻
        /// </summary>
        public float Resistance { get; set; }

        /// <summary>
        /// 滤波电阻
        /// </summary>
        public float Filter_res { get; set; }

        /// <summary>
        /// 平滑电阻
        /// </summary>
        public float Smooth_res { get; set; }

        /// <summary>
        /// 电阻针震值
        /// </summary>
        public float Vibration { get; set; }

        /// <summary>
        /// 电阻摆动值
        /// </summary>
        public float Swing { get; set; }

        /// <summary>
        /// 电阻斜率mv
        /// </summary>
        public float Slope { get; set; }

        /// <summary>
        /// 电阻累斜
        /// </summary>
        public float Accsloper { get; set; }

        /// <summary>
        /// 实际下料间隔时间
        /// </summary>
        public int Real_nb_interval { get; set; }

        /// <summary>
        /// 状态：1阳升2阳降3手动阳升4手动阳降 参照运行状态1
        /// </summary>
        public int Pole_up_down { get; set; }

        /// <summary>
        /// 状态: 1有0 无 参照 面板状态1 并且电压>8V
        /// </summary>
        public int Reaction { get; set; }

        /// <summary>
        /// 状态: 1有 0 无 面板状态2 出铝
        /// </summary>
        public int Out_al { get; set; }

        /// <summary>
        /// 状态: 1有 0无 面板状态4 换极
        /// </summary>
        public int Change_pole { get; set; }

        /// <summary>
        /// 状态: 1有 0无 面板状态4 边加工
        /// </summary>
        public int Side_process { get; set; }

        /// <summary>
        /// 纯手动操作状态: 1有0无 故障状态1 纯手动
        /// </summary>
        public int Pure_man_operation { get; set; }

        /// <summary>
        /// 下料状态 0 無 1自動小下料 2自動大下料 3 手動小下料  4手動大下料 面板狀態2+開關狀態1 下料
        /// </summary>
        public int Bank_state { get; set; }

        /// <summary>
        /// 电压上限 //控制电压上限
        /// </summary>
        public float Volt_upper_limit { get; set; }

        /// <summary>
        /// 电压下限 //控制电压下限
        /// </summary>
        public float Volt_lower_limit { get; set; }

        /// <summary>
        /// 设定下料间隔
        /// </summary>
        public int Set_nb_interval { get; set; }

        /// <summary>
        /// 效应距今
        /// </summary>
        public int Reaction_interval { get; set; }

        /// <summary>
        /// 母綫位移狀態 0無 1有
        /// </summary>
        public int Bus_put_up { get; set; }

        /// <summary>
        /// 氟盐狀態 0無 1手動氟盐 2自動氟盐
        /// </summary>
        public int Fu_salt { get; set; }

        /// <summary>
        /// 当前的设定电压值
        /// </summary>
        public float Volt_set { get; set; }

        /// <summary>
        /// 下料模式  0 停料 1 正常下料 2 基本欠量周期 3长欠周期 4 基本过量周期 5 长过周期 6 效应处理下料 7 效应等待 10 定时下料
        /// </summary>
        public int Nb_mode { get; set; }

        #endregion 字段属性
    }
}